package top.ctbear.bgc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.text.SimpleDateFormat;
import java.util.Date;

@Controller
public class HelloWorldController {

    @RequestMapping("helloWorld")
    @ResponseBody
    public String helloWorld() {
        return "HelloWorld:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date());
    }

}
